#!/bin/bash
# RTL Project Environment Setup Script
# Source this file to set up PROJECT_PATH environment variable
#
# Usage:
#   source set_env.sh
#   or
#   . set_env.sh

# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# Set PROJECT_PATH to the rtl directory
export PROJECT_PATH="${SCRIPT_DIR}"

# Suppress PLI table redefinition warnings
# UFTMD: User Function/Task Multiply Defined
export VCS_SUPPRESS_WARNING=UFTMD

# Alternative: Use VCS_ARG_ADDED_OPTIONS to pass warning suppression
# export VCS_ARG_ADDED_OPTIONS="+warn=noUFTMD"

echo "RTL Project Environment Set:"
echo "  PROJECT_PATH = ${PROJECT_PATH}"
echo "  VCS_SUPPRESS_WARNING = ${VCS_SUPPRESS_WARNING}"
